﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace InstaGM
{
    public partial class first_time : Form
    {
        public first_time()
        {
            InitializeComponent();
        }

        private void first_time_Load(object sender, EventArgs e)
        {
            first_time_warning.Text = "I see it's your first time!\n\nLet's start with some important info about InstaGM (READ ME FULLY!)\n\n- IMPORTANT: InstaGM uses Telnet connection to connect to your Game-Server, this requires the following lines to be present in your GameServer.opt\n\nNote:[Source=C1ph3r] It is recommended to limit the ips which can connect to Telnet, this can be done by adding S console.allow_ip:127.0.0.1 (replace with your external ip: http://www.whatismyip)\n\nS console.allow_ip:127.0.0.1\nS console._password:yourtelnetpassword\n(._password means NON-DESHASH || .password means DESHASH)\nS console.port: 4515 (IT IS NOT RECOMMENDED TO USE THIS PORT!!!)\n\nWhats Connect On Startup?\n\nChecking this makes InstaGM auto connect to Telnet when the program is loaded.\n\nWhat is Auto-Tamed?\n\nChecking this will automatically tell InstaGM you want your summon tamed when you click on it\n\nWhat is the 'Summon Tab' for I thought Telnet couldn't send Items o_O\n\nQuite correct, it cannot. But InstaGM can use a db connection to send non-tamed pets to the users ItemBox or it can simply copy the command to your clipboard for use in-game!\n\nWhat is Log for?\n\nThe Log tab allows you to see the communications occuring between InstaGM and your GameServer.";
        }

        private void button1_Click(object sender, EventArgs e)
        {
            host_settings insta_settings = new host_settings();
            insta_settings.Show();
            insta_settings.FormClosed += close_welcome;
        }

        private void close_welcome(object sender, EventArgs e)
        {
            Properties.Settings.Default.first_time = false;
            Properties.Settings.Default.Save();
            this.Dispose();
        }
    }
}
